﻿#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include "barproperty.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    BarProperty *bP = new BarProperty();
    bP->setProperty("testValue", 200);

    // int tt = ui->widget->property("testValue").toInt();
    int tt = bP->property("testValue").toInt();
    qDebug() << "[" << __FUNCTION__ <<__LINE__ << "] :" << tt;

}

MainWindow::~MainWindow()
{
    delete ui;
}
